<%= link_to_remote "close", 
:url=>{:action=>"closeComments", :res_id=>@res_id}, 
:update=>"r_comment_"+@res_id,
:success=>visual_effect(:AN_EFFECT_HERE, "r_comment_"+@res_id) %>

<% for comment in @comments %>

	<p class="comment">
		<%= comment.description %>
		<% @comment = comment %>
		<% @user = User.find(session[:user_id]) %> 
		<%= render :partial => "already_graded_comment" %> <br/>
		<% if CommentGrade.canVoteThisComment(@user.id,@comment.id) then %>
		<%= link_to image_tag("icon_thumb_up.gif", :title => "good"),
			 {:controller=>"comment_grade", 
				:action=>"grade_with", 
				:val=>1,
				:comment=>comment.id} %>
		<%= link_to image_tag("icon_thumb_down.gif", :title => "bad"),
			 {:controller=>"comment_grade", 
				:action=>"grade_with", 
				:val=>-1,
				:comment=>comment.id} %>
		<% end %>
		
		from <%= link_to (User.find(comment.user_id)).username , :action => "show" , :controller => 'users', :id => comment.user_id %> 
	</p>

<% end %>